package com.xnyzc.lhy.finance.service.fegin.bankcard.follback;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.exception.PangException;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.finance.service.fegin.bankcard.FeginCheckBankCardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class FeginCheckBankCardFollBack implements FeginCheckBankCardService {

    @Override
    public Rv bankCardCheck(String cardNo) {
        log.error("-------------------------------------");
        log.error("bankCardCheck 服务调用失败，请检查resource服务是否开启");
        log.error("-------------------------------------");
        throw PangException.create(EErrorCode.BANK_CARD_CHECK_SERVER_FILED);
    }

    @Override
    public Rv bankCardAuthentication(Long driverId, String cardNo, String idCard, String name, String tag) {
        log.error("-------------------------------------");
        log.error("bankCardAuthentication 服务调用失败，请检查resource服务是否开启");
        log.error("-------------------------------------");
        throw PangException.create(EErrorCode.BANK_CARD_CHECK_SERVER_FILED);
    }
}
